#pragma once
#include "UltimateAsioNetworkPluginPrecompiled.h"
#include "UltimateAsioNetworkPlugin.h"
#include <OgreRoot.h>
 

class UltimateAsioNetworkPlugin;
//global variable
UltimateAsioNetworkPlugin* myPlugin;
 
//-----------------------------------------------------------------------
extern "C" void _UltimateAsioNetworkPluginExport dllStartPlugin(void)
{
  // Create plugin
  myPlugin = new UltimateAsioNetworkPlugin();
 
  // Register
  Ogre::Root::getSingleton().installPlugin(myPlugin);
}
extern "C" void _UltimateAsioNetworkPluginExport dllStopPlugin(void)
{
  Ogre::Root::getSingleton().uninstallPlugin(myPlugin);
  delete myPlugin;
}